<#assign tit><#if _oper='add'>新增<#else>修改</#if>教室</#assign>
<@page.html title=tit>
<div style="width:450px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input">
        <tr>
          <th>门店</th>
          <td><#if _oper='add'><select name="shopCode"><#if shopName??><#list shopName as t><option value="${t.id}"<#if room.shopCode?? && room.shopCode=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select><#else><input type="hidden" name="shopCode" value="${room.shopCode!}">${room.shopCode!} - <@value type="shopName" key="${room.shopCode!}"/></#if></td>
        </tr>
        <tr>
          <th width="25%">教室编号</th>
          <td width="75%"><#if _oper='add'><input type="text" name="code" value="${room.code!}" req="教室编号" size="10" maxlength="10"><#else><input type="hidden" name="code" value="${room.code!}">${room.code!}</#if></td>
        </tr>
        <tr>
          <th>名称</th>
          <td><input type="text" name="chName" value="${room.chName!}" req="名称" size="26" maxlength="50"></td>
        </tr>
        <tr>
          <th>最多人数</th>
          <td><input type="text" name="personMax" value="${room.personMax!}" req="最多人数" size="10" maxlength="10"></td>
        </tr>
        <tr>
          <th>类型</th>
          <td><select name="roomType" req="教室类型"><#if roomType??><#list roomType as t><option value="${t.id}"<#if room.roomType?? && room.roomType=t.id> selected</#if>>${t.id} - ${t.name}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>备注</th>
          <td><textarea name="note" cols="30" rows="3">${room.note!}</textarea></td>
        </tr>
        <tr>
          <th>状态</th>
          <td><input type="radio" name="status" id="enable_1" value="1"<#if room.status=1> checked</#if>><label for="enable_1">正常</label>
            <input type="radio" name="status" id="enable_2" value="2"<#if room.status!=1> checked</#if>><label for="enable_2">停用</label></td>
        </tr>
      </table>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>